﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Microsoft.Data.Entity.Design.Extensibility;
using System.ComponentModel;

namespace Liekhus.EntityFramework.XAFExtensions.CustomAttributes
{
    public class ProjectGenerationPathProperty : BaseCustomAttribute<string>
    {
        #region Constructor
        /// <summary>
        /// 
        /// </summary>
        /// <param name="parent"></param>
        /// <param name="context"></param>
        public ProjectGenerationPathProperty(XElement parent, PropertyExtensionContext context) : base(parent, context)
        {
            
        }
        #endregion

        #region Properties
        /// <summary>
        /// 
        /// </summary>
        public override string PropertyName 
        {
            get { return "ProjectGenerationPath"; } 
        }
        /// <summary>
        /// 
        /// </summary>
        public override string PropertyFormat 
        { 
            get { return ""; } 
        }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("Project Generation Path")]
        [Description(@"Path where the generated classes should be created.  This path is relative to the Project Root (i.e. SourceCode\XAF)")]
        public override string PropertyValue
        {
            get
            {
                return base.PropertyValue;
            }
            set
            {
                base.PropertyValue = value;
            }
        }
        #endregion
    }
}
